package com.dormitory_15.dormitory.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    private String studentId;
    private String name;
    private Integer gender;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp birthDate;
    private String idNumber;
    private String college;
    private String major;
    private String className;
    private String dormId;
    private String bedNumber;
    private String phone;
    private String email;
    private String emergencyContact;
    private String username;
    private String password;
    private String origin;

}
